package org.nstack.network.service.vip;

import org.nstack.header.message.APIEvent;
import org.nstack.header.rest.RestResponse;


@RestResponse(allTo = "inventory")
public class APICreateVipEvent extends APIEvent {

    private VipInventory inventory;

    public APICreateVipEvent(String apiId) {
        super(apiId);
    }
    
    public APICreateVipEvent() {
        super(null);
    }
    
    public VipInventory getInventory() {
        return inventory;
    }

    public void setInventory(VipInventory inventory) {
        this.inventory = inventory;
    }
 
    public static APICreateVipEvent __example__() {
        APICreateVipEvent event = new APICreateVipEvent();
        VipInventory inventory = new VipInventory();
        inventory.setName("vip1");
        inventory.setL3NetworkUuid(uuid());
        inventory.setUuid(uuid());
        inventory.setGateway("127.0.0.1");
        inventory.setNetmask("255.255.0.0");
        inventory.setIp("192.168.0.1");
        inventory.setIpRangeUuid(uuid());
        inventory.setPeerL3NetworkUuid(uuid());
        inventory.setState("enable");

        event.setInventory(inventory);
        return event;
    }

}
